import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/sys/failureType/${url}`, ...arg)
/**
 * 站内信
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
    // 获取站内信分页
    failureTypePage(data) {
        return request('failureTypePage', data, 'get')
    },
    // 获取站内信分页
    failureTypeSend(data) {
        return request('add', data)
    },
    // 删除站内信
    failureTypeDelete(data) {
        return request('deleteFailureType', data)
    },
    // 获取站内信详情
    failureTypeDetail(data) {
        return request('edit', data, )
    }
}
